<template>
	<!-- 根据传进来的值去判断，走哪一种类型的页面 -->
	<view  style='padding: 10px 0px;background: #f7f7f7;'>
		<!-- 主要内容 -->
		<view v-if='pageType==="tab01"'>
			<contentComponents :option='option' ref='contentComponents' ></contentComponents>
		</view>
		<!-- 流程图 -->
		<!-- <view v-if='pageType==="tab02"'>
			<u-image width="100%" height="300rpx" :src="src"></u-image>
		</view> -->
		<!-- 流程日志 -->
		<view v-if='pageType==="tab02"'>
			 <progressComponents :option='option' ref='progressComponents' ></progressComponents>
		</view>

	</view>
</template>

<script>
	import progressComponents from '@/components/progressComponents/index.vue'
	import contentComponents from '@/components/contentComponents/index.vue'
	export default {
		components:{
			progressComponents,
			contentComponents
		},
		props: {
			pageType: {
				type: [Number, String],
				default: ''
			},
			option: {
				type: Object,
				default: {}
			}


		},
		data() {
			return {
			}
		},
		created() {
		
		},
		methods: {
			// 获取流程图
			flowImage() {
				// flowImage({
				//   'instId': '',
				//   'defId': this.$route.query.id,
				//   'taskId': ''
				// }).then(res => {
				//   this.isImg = false
				//   var blob = new Blob([res], {
				//     type: 'imageType'
				//   }) // 指定格式为图片
				//   this.imgSrc = window.URL.createObjectURL(blob)
				// })
			},
		}


	}
</script>

<style>
</style>
